package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.campusnews.annotation.IgnoreSwaggerParameter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Invitation对象", description="")
public class Invitation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子自增id")
    @TableId(value = "invi_id", type = IdType.AUTO)
    private Integer inviId;

    @ApiModelProperty(value = "帖子标题")
    private String inviTitle;

    @ApiModelProperty(value = "帖子内容")
    private String inviContent;

    @ApiModelProperty(value = "帖子图片url")
    private String inviPic;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private List<String> picUrlList;

    @ApiModelProperty(value = "点赞数量")
    private Integer agreeNum;

    @ApiModelProperty(value = "评论数量")
    private Integer commentNum;

    @ApiModelProperty(value = "浏览量")
    private Integer browseNum;

    @ApiModelProperty(value = "话题id集合")
    private String topicList;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private List<Topic> topics;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private SchoolUser schoolUser;

    @ApiModelProperty(value = "发布地点id")
    private Integer buildId;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private Build build;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private List<FirstComment> firstComment;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @IgnoreSwaggerParameter
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @IgnoreSwaggerParameter
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;


    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int page;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int pageSize;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private String sortOrder;

}
